package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.Permission;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

public interface PermissionDao {

    Set<Permission> findPermissionByRoleId(Integer id);

    List<Permission> findAll();

    Page<Permission> findPage(@Param("queryString") String queryString);

    void add(Permission permission);

    long findCountByPermissionId(Integer id);

    void deleteById(Integer id);

    Permission findById(Integer id);

    void edit(Permission permission);
}
